<template>
  <!-- <div class="dialog-container">
    <div class="dialog-header">
      <span class="dialog-title">提示文字</span>
      <i class="icon icon-dialog-close" @click="close()"></i>
    </div>
    <div class="dialog-body"></div>
    <div class="dialog-footer"></div>
  </div>-->
  <div class="modal" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
      <div class="modal-content">
        <div class="modal-header">
          <i class="icon icon-modal-close" @click="close()"></i>
          <span class="modal-title">提示文字</span>
        </div>
        <div class="modal-body">在这里添加一些文本在这里添加一些文本一些文本</div>
        <div class="modal-footer">
          <button type="button" class="btn btn-danger btn-sm" @click="close()">关闭</button>
          <button type="button" class="btn btn-primary btn-sm">确定</button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Object
    }
  },
  data() {
    return {};
  },
  methods: {
    close() {
      this.$store.commit("setDialogStatus", {
        dialog: "registerDialog",
        isBoolean: false
      });
    }
  }
};
</script>

<style lang="scss" scoped>
.dialog-container {
  position: absolute;
  width: 460px;
  height: 600px;
  top: calc(50% - 300px);
  left: calc(50% - 230px);
  //   top: 50%;
  //   left: 50%;
  //   transform: translate(-50%, -50%);
  background-color: red;
  .dialog-header {
    height: 40px;
    line-height: 40px;
    background-color: #f8f8f8;
    .dialog-title {
      margin-left: 10px;
      color: #333;
      font-size: 14px;
    }
    .icon-dialog-close {
      float: right;
      margin-right: 10px;
      cursor: pointer;
      &:before {
        content: "\e656";
      }
    }
  }
  .dialog-body {
    overflow-y: auto;
  }
}
</style>